//
//  WaterRequest.m
//  Water
//
//  Created by yh on 2017/12/6.
//  Copyright © 2017年 chenguibang. All rights reserved.
//

#import "WaterRequest.h"
#import <UserCenterManager.h>
#import "AppClient.h"

@implementation WaterRequest
+ (instancetype)requestWith:(id)paramters{
    WaterRequest *request = [[WaterRequest alloc]init];
    request.paramters = paramters;
    return request;
}

- (NSString *)token{
    return [UserCenterManager shared].currentToken;
}
- (NSString *)serverUrl{
    if ([AppClient shared].currentServer) {
        return [NSString stringWithFormat:@"http://%@:%@",[AppClient shared].currentServer.host,[AppClient shared].currentServer.port];
    }
    return [super serverUrl];
}
@end
